package org.example.carsystem.service.impl;

import org.example.carsystem.domain.SysRole;
import org.example.carsystem.domain.vo.RoleVo;
import org.example.carsystem.mapper.RoleMapper;
import org.example.carsystem.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<SysRole> rolesSelect(String roleName, String roleKey, String status, Date createStartTime, Date createEndTime) {
        return roleMapper.rolesSelect(roleName,roleKey,status,createStartTime,createEndTime);
    }

    @Override
    public List<RoleVo> rolesSelectAll() {
        return roleMapper.rolesSelectAll();
    }
}
